import React, { Component } from 'react'
const text = '头部文本'
export default class MyHead extends Component {
    render() {
        return (
            <header>
                <span>这是头部</span>
                <p>{text}</p>
            </header>
        )
    }
}